package com.pt25.base.model.security;


import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.List;

@Data
@Component
@ConfigurationProperties(prefix = "security-configs")
class SecurityProperties {

    private List<SecurityConfig> configs;

    @Data
    public static class SecurityConfig {
        /**
         * redis服务的名称
         */
        private String redisName;
        /**
         * 用户类型
         */
        private String userType;
        /**
         * token加密秘钥
         */
        private String secretKey;

    }
}
